package com.ydh.company.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ydh.company.flag.PurchaseOrderFlag;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.util.List;

public class WarehousingOutRecordMain {
    @ApiModelProperty(name = "warehousingRecordMainId",notes = "出入库记录id",dataType = "string",required = false)
  private String warehousingRecordMainId;
  @NotBlank(message = "采购订单主表id不能为空")
  @ApiModelProperty(name = "purchaseOrderMainId",notes = "采购订单主表id",dataType = "string",required = false)
  private String purchaseOrderMainId;
    @NotBlank(message = "日期不能为空")
  @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",locale = "zh",timezone = "GMT+8")
    @ApiModelProperty(name = "date",notes = "出入库日期",dataType = "Timestamp",required = true)
  private java.sql.Timestamp date;
  @NotBlank(message = "仓库id不能为空")
    @ApiModelProperty(name = "repositoryId",notes = "仓库id",dataType = "string",required = true)
  private String repositoryId;
  @NotBlank(message = "出入库类型不能为空")
    @ApiModelProperty(name = "stockInOutType",notes = "出入库类型",dataType = "string",required = true)
  private String stockInOutType;
    @ApiModelProperty(name = "totalCount",notes = "合计",dataType = "double",required = true)
  private double totalCount;
    @ApiModelProperty(name = "recordType",notes = "记录类型，出库或入库",dataType = "long",required = false)
  private long recordType;
    @ApiModelProperty(name = "creator",notes = "制单人",dataType = "string",required = true)
  private String creator;
    @ApiModelProperty(name = "handledBy",notes = "经办人",dataType = "string",required = true)
  private String handledBy;
  @NotBlank(message = "出入库单号不能为空")
  @ApiModelProperty(name = "receiptOutNoString",notes = "出入库单号",dataType = "string",required = true)
  private String receiptOutNo;
    @ApiModelProperty(name = "userId",notes = "采购员id",dataType = "string",required = true)
  private String userId;
  @ApiModelProperty(name = "receiptOutRemarks",notes = "出入库备注",dataType = "string",required = true)
  private String receiptOutRemarks;

  public String getReceiptOutRemarks() {
    return receiptOutRemarks;
  }

  public void setReceiptOutRemarks(String receiptOutRemarks) {
    this.receiptOutRemarks = receiptOutRemarks;
  }

  private User user;
  private Repository repository;
  public String getReceiptOutNo() {
    return receiptOutNo;
  }

  public void setReceiptOutNo(String receiptOutNo) {
    this.receiptOutNo = receiptOutNo;
  }

  private  List<WarehousingOutRecordDetail> list;

  public List<WarehousingOutRecordDetail> getList() {
    return list;
  }

  public void setList(List<WarehousingOutRecordDetail> list) {
    this.list = list;
  }
  
  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  public Repository getRepository() {
    return repository;
  }

  public void setRepository(Repository repository) {
    this.repository = repository;
  }

  public String getWarehousingRecordMainId() {
    return warehousingRecordMainId;
  }

  public void setWarehousingRecordMainId(String warehousingRecordMainId) {
    this.warehousingRecordMainId = warehousingRecordMainId;
  }

  public String getPurchaseOrderMainId() {
    return purchaseOrderMainId;
  }

  public void setPurchaseOrderMainId(String purchaseOrderMainId) {
    this.purchaseOrderMainId = purchaseOrderMainId;
  }

  public java.sql.Timestamp getDate() {
    return date;
  }

  public void setDate(java.sql.Timestamp date) {
    this.date = date;
  }

  public String getRepositoryId() {
    return repositoryId;
  }

  public void setRepositoryId(String repositoryId) {
    this.repositoryId = repositoryId;
  }


  public String getStockInOutType() {
    return stockInOutType;
  }

  public void setStockInOutType(String stockInOutType) {
    this.stockInOutType = stockInOutType;
  }

  public double getTotalCount() {
    return totalCount;
  }

  public void setTotalCount(double totalCount) {
    this.totalCount = totalCount;
  }

  public long getRecordType() {
    return recordType;
  }

  public void setRecordType(long recordType) {
    this.recordType = recordType;
  }

  public String getCreator() {
    return creator;
  }

  public void setCreator(String creator) {
    this.creator = creator;
  }

  public String getHandledBy() {
    return handledBy;
  }

  public void setHandledBy(String handledBy) {
    this.handledBy = handledBy;
  }

}
